home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / apport / package-hooks / source_compiz.py < prev    next >
Encoding:
Python Source  |  2009-05-01  |  524 b   |  17 lines

  1. '''apport package hook for compiz
  2.  
  3. (c) 2009 Canonical Ltd.
  4. Author: Brian Murray <brian@ubuntu.com>
  5. '''
  6.  
  7. from apport.hookutils import *
  8. from os import path
  9.  
  10. def add_info(report):
  11.  
  12.     attach_file_if_exists(report, path.expanduser('~/.xsession-errors'), 'XsessionErrors')
  13.     attach_file_if_exists(report, '/var/log/Xorg.0.log', 'XorgLog')
  14.     attach_file_if_exists(report, '/var/log/Xorg.0.log.old', 'XorgLogOld')
  15.     attach_hardware(report) 
  16.     report['GconfCompiz'] = command_output(['gconftool-2', '-R', '/apps/compiz'])
  17.